import {GET,POST} from "@/api/api.ts";

const indexUrl = {
    list:'/system/scale/findScaleByParam',
    postItem:'/system/scaleSubRecord/save',
    setAnswer:'/system/scaleRecord/save',
    finishAnswer:'/system/scaleRecord/finalScale'
}
export default indexUrl
export const getAnswerForm = ()=>{
    return GET(`${indexUrl.list}`)
}
//创建提交记录
export const setAnswerForm = (params:any)=>{
    return POST(`${indexUrl.setAnswer}`,params)
}
export const postAnswerItem = (params:any)=>{
    return POST(`${indexUrl.postItem}`,params)
}
export const finishAnswer = (id:any)=>{
    return GET(`${indexUrl.finishAnswer}?id=${id}`)
}
